#include "thread_pool.h"

void mkdirCommand(task_t * task)
{
    printf("execute mkdir command.\n");

    char* data=task->data;//获取任务中的消息内容

    if(data==NULL||strcmp(data,"0")==0){
        printf("please add filename\n");
        return;
    }
        int ret=mkdir(data,0777);//默认掩码0777
        if(ret==-1){
            perror("mkdir");
            return;
        }
        printf("mkdir %s success\n",data);
}
